package blog.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import blog.entity.Article;

public interface ArticleRespository extends JpaRepository<Article, Long> {

    Page<Article> findByTitle(String title, Pageable pageable);

    List<Article> findByTitleLike(String title);

}
